package com.weixing.mall.core.validation;

import com.weixing.mall.core.validation.constraint.MobileValidation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 *
 * 验证手机号
 *
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/6 16:47
 * @Modified By:
 */
@Target({ ElementType.METHOD, ElementType.FIELD,ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {MobileValidation.class })
public @interface Mobile {
    String message() default "";
    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };
}
